export const PermissionTableColumns = shallowRef([
  {
    title: '序号',
    dataIndex: 'indexNo',
    width: 24,
  },
  {
    title: '权限名称',
    dataIndex: 'permissionName',
    width: 100,
  },
  {
    title: '权限编码',
    dataIndex: 'permissionCode',
    width: 180,
  },
  {
    title: '备注',
    dataIndex: 'note',
    width: 200,
  },
  {
    title: '排序',
    dataIndex: 'sort',
    width: 36,
  },
  {
    title: '创建时间',
    dataIndex: 'createdDate',
    width: 120,
  },
  {
    title: '状态',
    dataIndex: 'stateId',
    width: 64,
  },
  {
    title: '操作',
    dataIndex: 'action',
    width: 150,
  },
])

export const ComponentModalTableColumns = shallowRef([
  {
    title: '序号',
    dataIndex: 'indexNo',
    width: 36,
  },
  {
    title: '组件名称',
    dataIndex: 'componentTitle',
    width: 120,
  },
  {
    title: '组件编码',
    dataIndex: 'componentCode',
    width: 80,
  },
  {
    title: '备注',
    dataIndex: 'note',
    ellipsis: { showTitle: true },
    width: 200,
  },
])

export const ApiModalTableColumns = shallowRef([
  {
    title: '序号',
    dataIndex: 'indexNo',
    width: 36,
  },
  {
    title: '接口名称',
    dataIndex: 'apiTitle',
    width: 120,
  },
  {
    title: '接口PATH',
    dataIndex: 'apiUrl',
    ellipsis: { showTitle: true },
    width: 200,
  },
])
